export default ()=> {
    let myChart = echarts.init(document.getElementById('barChart'));
        const option = {
            tooltip: {
                trigger: 'item',
                formatter: "{a} <br/>{b}: {c} ({d}%)"
            },
            title: {
                text: '月台工作情况',
                x:'40%',
                top: '1%',
                textStyle:{
                    color :'#5c6076'
                }
            },
            legend: {
                top:'50px',
                orient: 'vertical',
                x: 'left',
                data: ['月台一', '月台二', '月台三', '月台四', '月台无', '月台六', '月台七', '月台八', '月台九', '其他']
            },
            series: [
                {
                    name: '访问来源',
                    type: 'pie',
                    selectedMode: 'single',
                    radius: [0, '30%'],

                    label: {
                        normal: {
                            position: 'inner'
                        }
                    },
                    labelLine: {
                        normal: {
                            show: false
                        }
                    },
                    data: [
                        {value: 335, name: '成品', selected: true},
                        {value: 679, name: '物料'},
                        {value: 1548, name: '原材料'}
                    ]
                },
                {
                    name: '访问来源',
                    type: 'pie',
                    radius: ['40%', '55%'],

                    data: [
                        {value: 335, name: '月台一'},
                        {value: 310, name: '月台二'},
                        {value: 234, name: '月台三'},
                        {value: 135, name: '月台四'},
                        {value: 1048, name: '月台五'},
                        {value: 251, name: '月台六'},
                        {value: 147, name: '月台七'},
                        {value: 102, name: '其他'}
                    ]
                }
            ]
        };
        myChart.setOption(option);
}